<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<title>后台管理</title>
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}"></script>
<script>
var weburl="{yun:}$config.sy_weburl{/yun}"

</script>
</head>
<body class="body_ifm">


<div class="infoboxp">

	<div class="table-list">
		<div class="admin_table_border">
			<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
			<form action="index.php?m=admin_entry&c=excelsave" name="myform" method="post" id='myform' target="supportiframe">
				<input name="m" value="admin_entry" type="hidden"/>
				<input name="c" value="del" type="hidden"/>
				{yun:}if $badnum > '0'{/yun}
				<span style="color: red">上传数据中有{yun:}$badnum{/yun}条数据缺少重要信息，继续上传将导致这些数据上传失败！</span>
				{yun:}/if{/yun}
				<table width="100%">
					<thead>
						<tr class="admin_table_top">
						<!--<th style="width:20px;"> -->
							<!--<label for="chkall"><input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/></label>-->
						<!--</th>-->

						<th>序号</th>
						<th>姓名</th>
						<th>手机号</th>
						<th>年龄</th>
						<th>性别</th>
						<th>身份证号</th>
						<th>联系地址</th>
						<th>岗位</th>
						<th>学历</th>
						<th>政治面貌</th>
						<th>入职时间</th>

					</thead>

					<tbody>
						{yun:}foreach item=v key=key from=$user{/yun}
							<tr align="center"  {yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">

								<td class="td1" style="text-align:center;width:50px;"><span>{yun:}$key-1{/yun}</span></td>
								<td class="ud" align="center" width="210">
									<!--<input type="text" name="member_name" id="member_name" lay-verify="required" value="{yun:}$v.member_name{/yun}" style="display:inline;width:400px;" autocomplete="off" class="layui-input">-->
									{yun:}$v.member_name{/yun}
								</td>
								<td class="ud" align="center" width="210">
									{yun:}$v.member_phone{/yun}
								</td>
								<td class="td" align="center">
									<div class="admin_new_t_j">{yun:}$v.member_age{/yun}</div>
								</td>
								<td class="td" align="center">
									{yun:}$v.member_sex{/yun}
								</td>
								<td class="td" align="center">{yun:}$v.member_card{/yun}</td>
								<td>{yun:}$v.member_address{/yun}</td>
								<td>{yun:}$v.job_name{/yun}</td>
								<td>{yun:}$v.member_deu{/yun}</td>
								<td>{yun:}$v.member_polity{/yun}</td>
								<td>{yun:}$v.entry_time{/yun}</td>

							</tr>
						{yun:}/foreach{/yun}

						<tr class="admin_table_trbg" style="width: auto;">
							<th style="width: 120px">入职公司：</th>
							<td>
								<div class="layui-input-inline">
									<select name="company" lay-filter="" id="company">
										<option value="">请选择入职公司</option>
										{yun:}foreach from=$companys key=j item=v{/yun}
										<option value="{yun:}$v.enterprise_id{/yun}" {yun:}if $company_id==$v.enterprise_id{/yun}selected="selected"{yun:}/if{/yun}>{yun:}$v.enterprise_name{/yun}</option>
										{yun:}/foreach{/yun}
									</select>
								</div>
							</td>
						</tr>
						<tr class="admin_table_trbg" >
							<th style="border-bottom:none;" colspan="5">&nbsp;</th>
							<td align="left" style="border-bottom:none;" colspan="8">
								<input type="hidden" name="excelname" size="40" value="{yun:}$excel{/yun}"/>
								<input class="admin_new_bth" type="button" onclick="back()" value="&nbsp;取消 &nbsp;" />
								<input class="admin_new_cz_tj" type="button" onclick="checkform()" value="&nbsp;确定&nbsp;"  />
							</td>
						</tr>
					</tbody>
				</table>
				<input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
			</form>
		</div>
	</div>
</div>

<script>
layui.use(['layer', 'form'], function(){
	var layer = layui.layer
		,form = layui.form
		,$ = layui.$;
});
$(document).ready(function(){
	$(".job1").change(function(){
		var job=$(this).val();
		var lid=$(this).attr("lid");
		if(job==""){
			$("#"+lid+" option").remove()
			$("<option value=''>--请选择--</option>").appendTo("#"+lid);
		}
		lid2=$("#"+lid).attr("lid");
		if(lid2){
			$("#"+lid2+" option").remove();
			$("<option value=''>--请选择--</option>").appendTo("#"+lid2);
		}
		$.post(weburl+"/index.php?m=ajax&c=ajax_job", {"str":job},function(data) {
			if(lid!="" && data!=""){
				$('#'+lid+' option').remove();
				$(data).appendTo("#"+lid);
			}
		})
	})
})
</script>
<script>
	function back(myform){

		window.history.go(-1);
		//location.reload();
	}
	function checkform(myform){
		/*if ($("#member_name").val()=="") {
			parent.layer.msg('请填写员工姓名！', 2,8);return false;
		}
		if(!(/^1[34578]\d{9}$/.test($("#member_phone").val())) || $("#member_phone").val()==""){
			parent.layer.msg('请正确填写手机号！', 2,8);return false;
		}

		var card = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
		if(card.test($("#member_card").val()) === false || $("#member_card").val()=="")
		{
			parent.layer.msg('请正确填写身份证号！', 2,8);return false;
		}
		if ($("#member_age").val()=="") {
			parent.layer.msg('请填写员工年龄！', 2,8);return false;
		}*/
		$("#myform").submit();

	}
</script>
</body>
</html>